/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.mrroman.linksender.gui.actions;

import java.awt.event.ActionEvent;
import java.util.ResourceBundle;

import javax.swing.AbstractAction;

import com.mrroman.linksender.gui.PopupPanel;
import com.mrroman.linksender.ioc.In;
import com.mrroman.linksender.ioc.Init;
import com.mrroman.linksender.ioc.Locales;
import com.mrroman.linksender.ioc.Name;

/**
 *
 * @author gorladam
 */
@Name("actions.ShowAllMessageEventsAction")
public class HideAllMessageEventsAction extends AbstractAction {

	@Locales
	private ResourceBundle messages;
    
    @In
    private PopupPanel popupPanel;

	@Init
	public void init() {
		putValue(NAME, messages.getString("hide_all_messages"));
	}

	@Override
	public void actionPerformed(ActionEvent arg0) {
        popupPanel.hidePopupLabels();
	}
}
